import type { InjectionKey, Ref } from 'vue';
import { TodoTaskStatusEnum } from '@/constants/enum';
import { IProcessInfo } from '@/apis/todo/model/flowModel';

/**
 * 办详情的根文件的provider的key
 */
export const TODO_DETAIL_ROOT = Symbol('todoDetailRoot') as InjectionKey<TodoDetailRootProvider>;

/**
 * 待办详情的根文件的provider
 */
export interface TodoDetailRootProvider {
  /**
   * 页面类型
   */
  pageType: keyof typeof TodoTaskStatusEnum;
  /**
   * 工作流详情
   */
  processInfo: Ref<IProcessInfo>;
}
